//
//  LPTpreamountTableViewCell.m
//  LPTClient
//
//  Created by mac on 2018/12/15.
//  Copyright © 2018年 zhaodd. All rights reserved.
//

#import "LPTpreamountTableViewCell.h"

@interface LPTpreamountTableViewCell ()

@property (weak, nonatomic) IBOutlet UILabel *countLabel;

@end

@implementation LPTpreamountTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.count = 1;
}

- (IBAction)addAction:(id)sender {
    
    self.count ++;
    
    self.countLabel.text = [NSString stringWithFormat:@"%zdg",self.count];
}

- (IBAction)minusAction:(id)sender {
    
    if (self.count > 1) {
        
        self.count --;
    }
    
    self.countLabel.text = [NSString stringWithFormat:@"%zd剂",self.count];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
